package com.luli.controllor;

import com.luli.dao.UsersDao;
import com.luli.entity.Blood;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.CrossOrigin;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.io.IOException;
import java.util.List;

/**
 * 陆离
 * 2022/5/3 19:12:22
 */
@Controller
@CrossOrigin
public class IndexController {
    //http://127.0.0.1:8083/LuLi/
    @GetMapping({"/","/index"})
    public String index(){
        return "index";
    }

    @GetMapping({"/getDate"})
    public String getDates(){
        return "dataTest";
    }
}
